<extend name="Public:base" />
<block name="body">
	<!-- BEGIN PAGE CONTENT-->
	<div class="row">
		<div class="col-md-9">
			<form action="{:U('edit')}" method="post">
				<div class="tabbable tabbable-custom tabbable-full-width">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#tab1" data-toggle="tab">编辑后台菜单</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="tab1">
							<div class="form-group">
								<label class="control-label">标题</label>
								<input type="text" name="title" class="form-control input-large" value="{$info.title}" />
							</div>
							<div class="form-group">
								<label class="control-label">排序</label>
								<input type="text" name="sort" class="form-control input-large" value="{$info.sort}" />
							</div>
							<div class="form-group">
								<label class="control-label">链接</label>
								<input type="text" name="url" class="form-control input-large" value="{$info.url}" />
							</div>
							<div class="form-group">
								<label class="control-label">上级菜单</label>
								<select name="pid" class="form-control input-small">
									<option value="0">顶级菜单</option>
									<volist name="menuList" id="v">
										<option value="{$v.id}" <eq name="info.pid" value="$v.id">selected</eq> >{$v.html}{$v.title}</option>
									</volist>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label">分组 &nbsp;&nbsp;<span style="color:#999">(用于左侧二级菜单显示)</span></label>
								<input type="text" name="group" class="form-control input-large" value="{$info.group}" />
							</div>
							<div class="form-group">
								<label class="control-label">说明</label>
								<input type="text" name="tips" class="form-control input-large" value="{$info.tips}" />
							</div>
							<div class="form-group">
								<label  class="control-label">是否隐藏</label>
								<div class="radio-list">
									<label class="radio-inline">
										<input type="radio" value="0" name="hide" checked="checked" /> 否
									</label>
									<label class="radio-inline">
										<input type="radio" value="1" name="hide" <eq name="info.hide" value="1">checked</eq> /> 是
									</label>
								</div>
							</div>
						</div>
						<input type="hidden" name="id" value="{$info.id}">
						<label  class="control-label"></label>
						<div class="margin-top-10">
							<button type="button" class="btn green ajax-post">确 认</button>
							<a href="javascript:" onclick="javascript:history.back(-1);return false;" class="btn default"> 返 回 </a>
						</div>
					</div>

				</div>
			</form>
		</div>
	</div> 
</block>
<block name="script">
	<script type="text/javascript">
		$(function(){
			//导航高亮
			highlight_subnav('{:U('index')}');
		});
	</script>
</block>